package java;

public class Question9 {
    public static void main(String[] args) {
        System.out.println(isPalindrome(0));
    }
    public static boolean isPalindrome(int x) {
        if (x < 0){
            return false;
        }
        String numStr = String.valueOf(x);
        int start = 0;
        int end = numStr.length() - 1;
        while (start <= end){
            if (numStr.charAt(start) != numStr.charAt(end)){
                return false;
            }else {
                start ++;
                end --;
            }
        }
        return true;
    }
}
